import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import vant from 'vant'
import axios from 'axios';
import 'element-plus/dist/index.css'
import 'vant/lib/index.css'
import './style/common.css'
const app=createApp(App)
// let host = location.protocol + '//' + location.hostname
// if (location.port !== null && location.port !== '' && location.port !== 'null') {
//     host += ':' + location.port
// }
let host = 'https://www.pengzhou.org.cn'
window.samplepdfUrl = host +'/api/ybj/getPDF/'
window.downUrl = host +'/api/ybj/downloadFile/'
window.downSampleUrl = host +'/api/ybj/downloadSampleFile/'
window.downPDFUrl = host +'/api/ybj/downloadPDF/'
window.areapdfUrl = host +'/api/ybj/getArea/'
window.systemUrl = 'https://www.pengzhou.org.cn/api/public/toCode'
window.aiBusiness = 'https://www.pengzhou.org.cn/wx/aiBusiness1'
app.config.globalProperties.$axios = axios;
app.use(ElementPlus)
app.use(vant)
app.use(router).mount('#app')

